package cn.itsource.ymcc.utils;

import cn.itsource.result.PageList;
import cn.itsource.ymcc.doc.CourseDoc;

import cn.itsource.ymcc.dto.Aggs;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.elasticsearch.search.aggregations.bucket.terms.Terms;

import java.util.List;
import java.util.Map;

/**
 * Es 聚合分页结果 PageList
 */
@Data
@NoArgsConstructor
public class EsAggPageList extends PageList {
    private Map<String, List<Aggs>> map;


    public EsAggPageList(long total, List<CourseDoc> content, Map<String, List<Aggs>> map) {
        super(total,content);
        this.map = map;
    }
}
